home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 273_01 / curlf.cc < prev    next >
Encoding:
Text File  |  1987-09-23  |  318 b   |  14 lines

  1. cur_lf()
  2. /* Move the cursor one col to the left */
  3. {
  4.         int cur_row, cur_col;
  5.         get_cur(&cur_row,&cur_col);
  6.         cur_col--;
  7.         if(cur_col<0) {
  8.                 cur_row--;
  9.                 cur_col=79;
  10.                 if(cur_row<0) cur_row=24;
  11.         }
  12.         locate(cur_row,cur_col);
  13. }
  14.